#!/bin/sh
awk -F, '{
        print $4 ", " $0
        }' $* |
sort |
awk -F, '
$1 == LastState {
        print "\t\t" $2
}
$1 != LastState {
        LastState = $1
        print $1 
        print "\t\t"$2
}'
